<?php
/* @var $this ReservationDetailsController */
/* @var $model ReservationDetails */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'reservation-details-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'menu_id'); ?>
		<?php echo $form->dropDownList($model, 'menu_id', CHtml::listData(
                 MenuPackage::model()->findAll(), 'menu_id', 'menu_id'),
		array('prompt' => 'Select a Menu Package')
		); ?>
		<?php echo $form->error($model,'menu_id'); ?>
	</div>
        

      
        <div class="row">
		<?php echo $form->labelEx($model,'design_package_id'); ?>
		<?php echo $form->dropDownList($model, 'design_package_id', CHtml::listData(
		DesignPackage::model()->findAll(), 'id', 'design_name'),
		array('prompt' => 'Select a Design Package')
		); ?>
		<?php echo $form->error($model,'design_package_id'); ?>
           
	</div>


        <div class="row">
            
		<?php echo $form->labelEx($model,'store_reservation_branch_id'); ?>
		<?php echo $form->dropDownList($model, 'store_reservation_branch_id', CHtml::listData(
                 StoreReservation::model()->findAll(), 'branch_id','hall','branch_id'),
		array('prompt' => 'Select Store')
		); ?>
		<?php echo $form->error($model,'store_reservation_branch_id'); ?>
	</div>

<div class="row">
		<?php echo $form->labelEx($model,'catering_id'); ?>
		<?php echo $form->dropDownList($model, 'catering_id', CHtml::listData(
		Catering::model()->findAll(), 'id', 'address'),
		array('prompt' => 'Select a Address')
		); ?>
		<?php echo $form->error($model,'catering_id'); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->